package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null;comment:'账号'"`
	Password string `gorm:"type:char(32);not null;comment:'密码'"`
	Mobile   string `gorm:"type:char(11);not null;comment:'手机号'"`
	Image    string `gorm:"type:varchar(500);not null;comment:'头像'"`
	NickName string `gorm:"type:varchar(20);not null;comment:'昵称'"`
	Address  string `gorm:"type:varchar(100);not null;comment:'地区'"`
}
